package server

import (
	"github.com/google/wire"
	pb "phm/api/phm/v1"
	"phm/api/phm/v1/bigscreen"
)

// ProviderSet is server providers.
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer, NewCronServer)

// white list

var whiteList = map[string]bool{
	"/api.phm.v1.webmanage.User/CreateUser": true,
	"/helloworld.v1.Greeter/SayHello":       true,
	//"/api.phm.v1.webmanage.User/GetNowUserInfo":  true,
	//"/api.phm.v1.webmanage.User/GetNowUserRoles": true,
	"/api.phm.v1.webmanage.User/LoginUser":  true,
	"/api.phm.v1.webmanage.User/LogoutUser": true,
	// radar white list:
	pb.OperationRadarGetRaStationMapStatus:         true,
	bigscreen.OperationRadarBigscreenRealTimeFiled: true,
}
